#Cumulative Animals
CumulativeAnimals<-function(df){
with(df,
for(x in min(df$Day):(max(df$Day))){
print(length(unique(df[!df$Animal%in%df[df$Day<x,"Animal"]&!df$Day>x,"Animal"]))+length(unique(df[df$Day<x,"Animal"])))
}
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.